Pixeldev\SquareWooSync\Woo\SyncProduct D

Total Complexity 328
Dependencies 10
Dependents 1
Total lines 2,118
Lines of code 1,412
Logical lines of code 735
Comment lines 361
Methods 36
Properties 2

Methods 36

Method Rating Maintainability Complexity Lines of code
create_or_update_square_variations()
D
19
51 229
construct_inventory_changes()
D
27
30 153
update_square_product()
C
35 30 81
delayed_export_to_square()
B
37 17 76
handle_ajax_export_to_square()
B
40 16 55
create_square_order_after_woo_order()
B
45 17 38
create_order_in_background()
B
36 14 79
sync_inventory_after_product_sold()
A
37 14 73
squarewoosync_sync_products()
A
43 10 44
create_square_order_after_checkout_order()
A
48 10 35
delete_square_product()
A
44 9 47
upload_image_to_square()
A
40 8 60
export_to_square()
A
49 9 31
get_woo_product_data()
A
43 7 51
update_square_stock()
A
54 9 20
get_or_create_square_category()
A
43 7 48
handle_ajax_sync_to_square()
A
48 7 31
normalize_order_data()
S
56 7 20
on_product_update()
S
57 6 15
enqueue_sync_metabox_scripts()
S
55 5 20
upload_product_images_to_square()
S
57 5 18
build_square_category_array()
S
56 5 18
find_square_category_by_term()
S
62 5 11
set_order_meta()
S
58 4 15
build_ancestor_chain()
S
60 4 14
load_square_categories()
S
61 4 12
handle_sync_to_square_bulk_action()
S
58 3 15
is_sync_successful()
S
73 4 4
sync_meta_box_html()
S
51 1 41
sync_to_square_bulk_action_admin_notice()
S
66 3 8
init_woo_product()
S
59 2 13
__construct()
S
79 1 3
register_sync_to_square_bulk_action()
S
75 1 4
format_variation_data()
S
64 1 10
add_sync_meta_box()
S
66 1 10
wc_find_variation_by_temp_id()
S
65 1 10